package cn.com.taiji.pos.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * <p>
 * 定额消费(按次消费)
 * </p>
 *
 * @author
 * @since 2021-03-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class ConfigQuotaConsumption implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("ID")
    private String id;

    /**
     * 所属餐厅
     */
    @TableField("RESTAURANT_ID")
    private String restaurantId;

    /**
     * 所属餐次
     */
    @TableField("MEAL_TIME_ID")
    private String mealTimeId;

    /**
     * pos机Id
     */
    @TableField("POS_MACHINE_ID")
    private String posMachineId;

    /**
     * 品项id
     */
    @TableField("FOOD_ITEM_ID")
    private String foodItemId;

    /**
     * 品项编码
     */
    @TableField("FOOD_ITEM_CODE")
    private String foodItemCode;

    /**
     * 图片名称
     */
    @TableField("PICTURE_NAME")
    private String pictureName;

    /**
     * 金额(价格)
     */
    @TableField("PRICE")
    private BigDecimal price;

    /**
     * 相关描述
     */
    @TableField("DESCRIPTION")
    private String description;

    /**
     * 状态(0:启用,1:停用)
     */
    @TableField("STATUS")
    private String status;

    /**
     * 创建人
     */
    @TableField("CREATOR_ID")
    private String creatorId;

    /**
     * 创建人姓名
     */
    @TableField("CREATOR_NAME")
    private String creatorName;

    /**
     * 创建时间
     */
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @TableField("CONFIG_TYPE")
    private String configType;

    @TableField(exist = false)
    private String foodName;
    @TableField(exist = false)
    private String foodCategoryName;


}
